package com.powernode.dataaccessobject.entity;

/**
 * @Author Arrebol
 * @Date 2024/8/3 11:24
 * @Project jdbc
 * @Description：
 * 员工类，用于封装员工信息，这个类称为bean或pojo，也就是普通的Java类
 */
public class Employee {
    private Long id;
    private String name;
    private String job;
    private Double salary;
    private String hireDate;
    private String address;

    public Employee() {
    }

    public Employee(Long id, String name, String job, Double salary, String hireDate, String address) {
        this.id = id;
        this.name = name;
        this.job = job;
        this.salary = salary;
        this.hireDate = hireDate;
        this.address = address;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getHireDate() {
        return hireDate;
    }

    public void setHireDate(String hireDate) {
        this.hireDate = hireDate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", job='" + job + '\'' +
                ", salary=" + salary +
                ", hireDate='" + hireDate + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
